﻿//*** Guidance generated code ***//
using System;
using System.Collections.Generic;
using System.Diagnostics.Contracts;
using System.Linq;

using ProjectBase.Core;

namespace Survey.Entity
{
    /// <summary>
    ///     Project-base for filter objects.
    /// </summary>
    /// <typeparam name = "TID">The ID type (struct)</typeparam>
    [Serializable]
    public abstract class BaseFilter<TID> : Filter<TID>
        where TID : struct
    {
        /// <summary>
        ///     equivalent to GetById, over Find(Filter) API
        /// </summary>
        public virtual TID? IdExact { get; set; }

        public override void SetIdSearch(TID idSearch)
        {
            IdExact = idSearch;
        }
    }
}